package BanyuanClub.Work.Day0304;

import javax.management.MBeanAttributeInfo;
import java.io.*;

/**
 * 将aaa文件中的a转成A
 */
public class ChangeLetter {
    public static void main(String[] args) {
        try (BufferedReader br = new BufferedReader(
                new FileReader("aaa.txt"));
             BufferedWriter bw = new BufferedWriter(
                     new FileWriter("aaa.txt"))
        ){

            int end;
//            byte[] by = new byte[1];
            while ((end = br.read()) != -1){
//                if ( )
            }

        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
